fix: stop node namespace prefix parameter ordering in readStopNodeData#818
fix: stop node namespace prefix parameter ordering in readStopNodeData#818iruizsalinas wants to merge 1 commit intoNaturalIntelligence:masterfrom
Conversation
|
Thanks for your effort and time. Let me test it with some tests and then I'll check the PR. Probably on coming monday |
|
As you have not mentioned the version, I'm assuming it is latest. And I believe, you're using wrong syntax for namespace then. Application supports path-expression-matcher. Can you please check with correct syntax and let me know if you're still facing the issue. |
|
Hello, I'm on v5.7.1. Just tested with
The bug isn't in the matching, it's in |
|
Somehow a related test was passing so I raised the doubt. As I'm going on Holiday for few days. I'll merge, and release after that. |
|
Thanks, have a good one. |
Purpose / Goal
Fix incorrect parameter ordering in
readStopNodeDatathat breaks stop node tracking when the tag has a namespace prefix.Type
readStopNodeDatacallsreadTagExp(xmlData, i, '>')at line 760, but'>'ends up in theremoveNSPrefixparameter instead ofclosingChar. Since it's truthy, namespace prefixes get stripped from opening tags inside the stop node, while closing tags keep them. This throws offopenTagCountbecause opens and closes no longer match.The fix is changing
readTagExp(xmlData, i, '>')toreadTagExp(xmlData, i, false)sinceclosingCharalready defaults to">".